package com.frank.oj.service.file;

import com.frank.oj.common.exception.StatusFailException;
import com.frank.oj.common.exception.StatusForbiddenException;
import com.frank.oj.common.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author frank
 * @Date 2024/4/5
 */
public interface TestCaseService {
    void downloadTestcase(Long pid, HttpServletResponse response) throws StatusForbiddenException, StatusFailException;

    CommonResult<Map<Object, Object>> uploadTestcaseZip(MultipartFile file, Long gid, String mode);
}
